<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/17 0017
  Time: 上午 10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="cce" uri="http://java.sun.com/jsp/jstl/core" %>


<html>
<head>
    <title>Title</title>
</head>
<body>
<%--<form action="UserServlet" method="get">
    <input type="hidden" name="action" value="like">
    用户名称:<input type="text" name="userName">
    用户角色：<select name="userRole">
    <option value="0">请选择</option>
    <option value="0">系统管理员</option>
    <option value="0">经理</option>
    <option value="0">普通员工</option>

</select>
    <input type="submit" value="查询">
</form>--%>
<h1>欢迎<%=request.getParameter("userName")%>></h1>
<table border="1" align="center">
    <tr>
        <th>名称</th>
        <th>地址</th>
        <th>操作</th>
    </tr>
    <c:forEach var="user" items="${list}">

        <tr>
            <td>${user.userName}</td>
            <td>${user.userPassword}</td>
            <td><a href="UserServlet?action=del&id=${user.id}">删除</a></td>
            <td><a href="add?action=ins&id=${user.id}">增加</a></td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
